const path = require('path')
const {db} = require(path.resolve(__dirname , '../config/setting.js'))
const mysql = require('mysql')
const database = mysql.createPool({
	host: db.host,
	user: db.user,
	password: db.password,
	database: db.database,
  });
  
  module.exports = database;